<script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>js/default/galleria-1.2.8.js"></script>
<div id="galleria" style="margin-bottom: 10px">
    <img src="<?php echo $this->mycommon->renderThumbImage('/uploads/images/slideshow/slideshow-1.jpg', 900, 325) ?>"/>
    <img src="<?php echo $this->mycommon->renderThumbImage('/uploads/images/slideshow/slideshow-2.jpg', 900, 325) ?>"/>
    <img src="<?php echo $this->mycommon->renderThumbImage('/uploads/images/slideshow/slideshow-3.jpg', 900, 325) ?>"/>
    <img src="<?php echo $this->mycommon->renderThumbImage('/uploads/images/slideshow/slideshow-4.jpg', 900, 325) ?>"/>
    <img src="<?php echo $this->mycommon->renderThumbImage('/uploads/images/slideshow/slideshow-5.jpg', 900, 325) ?>"/>
    <img src="<?php echo $this->mycommon->renderThumbImage('/uploads/images/slideshow/slideshow-6.jpg', 900, 325) ?>"/>
    <img src="<?php echo $this->mycommon->renderThumbImage('/uploads/images/slideshow/slideshow-7.jpg', 900, 325) ?>"/>
</div>

<?php foreach ($boxMenu as $box): ?>
    <div class="inner-content box green">
        <div class="head-box" style="float:left;">
            <div class="title">
                <div><a href="<?php echo site_url((($langCode == 'vietnam') ? 'chuyen-muc/' : 'category/') . $this->mycommon->convertToAlias($box['info']['name']) . '_' . $box['info']['id']) ?>" style="color: white;"><?php echo $box['info']['name'] ?></a></div>
            </div>
            <?php if ($box['child']): ?>
                <div class="box-child">    
                    <ul>        
                        <li class="tab-left"></li>
                        <?php foreach ($box['child'] as $child): ?>
                            <li><a href="<?php echo $child['href'] ?>"><?php echo $child['name'] ?></a></li>    
                        <?php endforeach; ?>
                    </ul>    
                    <div class="clear"></div>
                </div>
            <?php endif; ?>
            <div class="clear"></div>
        </div>

        <div id="content">
            <div class="content-box-2">
                <?php if (isset($box['post'][0])): ?>
                    <div class="content-left">        
                        <div class="first-news">           
                            <a href="<?php echo site_url($this->mycommon->convertToAlias($box['post'][0]['title']) . '_' . $box['post'][0]['id']) ?>">
                                <img src="<?php echo $this->mycommon->renderThumbImage($box['post'][0]['link_img'], 126, 131) ?>" alt="<?php echo $box['post'][0]['title'] ?>" title="<?php echo $box['post'][0]['title'] ?>">
                            </a>            
                            <h3><a href="<?php echo site_url($this->mycommon->convertToAlias($box['post'][0]['title']) . '_' . $box['post'][0]['id']) ?>"><?php echo $box['post'][0]['title'] ?></a></h3>        
                            <p><?php echo $box['post'][0]['description'] ?></p>        
                            <div class="clear"></div>
                        </div>    
                    </div>    
                <?php endif; ?>
                <?php if ($box['post']): ?>
                    <div class="content-right">        
                        <ul class="list-other-news">   
                            <?php $i = 1; ?>
                            <?php foreach ($box['post'] as $post): ?>
                                <?php if ($i > 1): ?>
                                    <li>
                                        <a href="<?php echo site_url($this->mycommon->convertToAlias($post['title']) . '_' . $post['id']) ?>"><?php echo $post['title'] ?></a>
                                    </li>      
                                    <?php
                                endif;
                                $i++;
                                ?>
                            <?php endforeach; ?>
                        </ul>   
                    </div> 
                <?php endif; ?>
                <?php if (!$box['post']): ?>
                    <p><?php echo $lang['empty_post'] ?></p>
                <?php endif; ?>
                <div class="clear"></div>
            </div>
        </div>
        <div class="clear-fix"></div>
    </div>
<?php endforeach; ?>


<?php if ($goodPost): ?>
    <div class="inner-content box green">
        <div class="head-box" style="float:left;">
            <div class="title">
                <div><?php echo $lang['goodPost'] ?></div>
            </div>
            <div class="clear"></div>
        </div>

        <div id="content">
            <div class="content-box-2">
                <?php if (isset($goodPost[0])): ?>
                    <div class="content-left">        
                        <div class="first-news">           
                            <a href="<?php echo site_url($this->mycommon->convertToAlias($goodPost[0]['title']) . '_' . $goodPost[0]['id']) ?>">
                                <img src="<?php echo $this->mycommon->renderThumbImage($goodPost[0]['link_img'], 126, 131) ?>" title="<?php echo $goodPost[0]['title'] ?>" alt="<?php echo $goodPost[0]['title'] ?>">
                            </a>            
                            <h3><a href="<?php echo site_url($this->mycommon->convertToAlias($goodPost[0]['title']) . '_' . $goodPost[0]['id']) ?>"><?php echo $goodPost[0]['title'] ?></a></h3>        
                            <p><?php echo $goodPost[0]['description'] ?></p>        
                        </div>    
                    </div>     
                <?php endif; ?>
                <div class="content-right">        
                    <ul class="list-other-news">       
                        <?php foreach ($goodPost as $k => $good): ?>
                            <?php if (isset($goodPost[$k]) && $k != 0): ?>
                                <li>
                                    <a href="<?php echo site_url($this->mycommon->convertToAlias($good['title']) . '_' . $good['id']) ?>"><?php echo $good['title'] ?></a>
                                </li>  
                            <?php endif; ?>
                        <?php endforeach; ?>
                    </ul>   
                </div>
                <div class="clear"></div>
            </div>
        </div>
        <div class="clear-fix"></div>
    </div>
<?php endif; ?>
